home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Documentation / Development Notes / ODF Localization Technote < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.2 KB  |  20 lines  |  [ttro/ttxt]

  1. Tech note on Localization of ODF parts.
  2. By Eric Hammond  Apple Computer.
  3.  
  4. Many developers use the following localization process:
  5. 1. DeRez original files (US version) to generate .r files.
  6. 2. Localize the strings in the .r files.
  7. 3. Rez the source code back into the original files.
  8.  
  9. In the case of ODF parts development,  developers cannot use the same localization process. It is technically impossible to provide a 'decompiler' for ODFRC resources; it would be like trying to recreate the C++ source code from a compiled application. ODFRC is much more complex than Rez. The only way is for the developer to localize the original .fr files instead of 'DeRezing' the resources. 
  10. The correct procedure is as follows:
  11. 1. Get the .fr files which contain the part resources. Header files included by these files will also be needed (e.g. ‘Binding.k’, ‘Defines.k’).
  12. 2. Compile the .fr files using ODFRC.
  13. 3. Compare the resulting .rsrc files with the part to make sure the resources are the same.
  14. 4. Localize the strings and fonts in the .fr files.
  15. 5. Compile the localized .fr files using ODFRC.
  16. 6. Use ResEdit or Rez to replace the part resources with the localized versions.
  17.  
  18. By following this procedure localization of ODF based parts including Kickstart should be systematic.
  19.  
  20.